<!-- content -->
<div id="content">
	<h2>产品大全</h2>
    <!-- mainContent -->
	<div id="mainContent">
		<div id="listLeechdoms" class="clear">
            <table border="0" cellspacing="0" cellpadding="0">
            <% for leechdom in @leechdoms %>
                <tr>
                    <td>
                      <ul class="leechdom">
                        <li class="img"><a href="/leechdoms/<%= leechdom.id %>"><img src="<%= leechdom.image_url %>" alt="" /></a></li>
                        <li class="name"><a href="/leechdoms/<%= leechdom.id %>"><%= leechdom.proprietary_name %></a></li>
                        <li><%= leechdom.indications %></li>
                        <li><a href="/factories/<%= leechdom.factory.id %>"><%= leechdom.factory.company %></a></li>
                      </ul>
                     </td>
                </tr>              
            <% end %>  
            </table>        
		</div>
        <%= will_paginate @leechdoms %>
    </div>
    <div id="sideContent">
        <h3>药品分类</h3>
        <ul>
        <% for category in @categories %>
          <li><strong><%= category.name %></strong><br /><% if category.children.first %><% for child in category.children %><a href="/categories/list/<%= child.id %>"><%= child.name %></a><br /><% end %><% else %><a href="/categories/list/<%= category.id %>"><%= category.name %></a><% end %></li>
        <% end %>
        </ul>
    </div>    
</div>